<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin">订单管理</h4>
</div>
<div ng-controller="ordersCtrl">
    <tabset class="tab-container wrapper" ng-if="shop.auditStatus==2">
        <!--<tab heading="直邮订单" ng-click="changeStatus(2)" ng-if="shop.isMail==1">-->
            <!--<div class="panel m-n" ng-if="orders.type==2">-->
                <!--<div class="wrapper panel-body b-a m-b-sm padder-v">-->
                    <!--<div class="col-sm-9">-->
                        <!--<form class="form-inline">-->
                            <!--<div class="block m-t-sm">-->
                                <!--<label class="control-label">下单时间</label>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyStartDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" max-date="maxDate"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyEndDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.buyStartDate" max-date="maxDate"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="block m-t-sm">-->
                                <!--<label class="control-label">付款时间</label>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.startDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" max-date="maxDate"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.endDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.startDate" max-date="maxDate"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="form-group block m-t-sm">-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">店铺订单编号</label>-->
                                    <!--<input type="text" ng-model="orders.shopOrderNumber" class="input-sm form-control">-->
                                <!--</div>-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">手机号码</label>-->
                                    <!--<input type="text" ng-model="orders.mobilePhone" class="input-sm form-control">-->
                                <!--</div>-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">购买方式</label>-->
                                    <!--<select class="input-sm form-control" ng-model="orders.payWay">-->
                                        <!--<option value >全部</option>-->
                                        <!--<option value="0">微信</option>-->
                                        <!--<option value="1">现金分</option>-->
                                        <!--<option value="2">收益分</option>-->
                                        <!--<option value="3">会员卡</option>-->
                                    <!--</select>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<input type="hidden" ng-model="orders.pageType" ng-init="orders.pageType = 0" >-->
                            <!--<button class="btn btn-sm btn-info" ng-click="query()">查询</button>-->
                        <!--</form>-->
                    <!--</div>-->
                    <!--<div class="col-sm-1 pull-right no-padder">-->
                        <!--<div class="text-right">-->
                            <!--<button class="btn btn-success m-n" ng-click="exportData(2)">导出订单</button>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->

                <!--<tabset class="tab-container m-n">-->
                    <!--<tab heading="全部订单" ng-click="clearState(2)" active="orders.status==-1">-->
                        <!--<div ng-include="'tpl/orders/all.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="未付款" ng-click="changeState(0,2)">-->
                        <!--<div ng-include="'tpl/orders/wait.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="已付款" ng-click="changeState(1,2)">-->
                        <!--<div ng-include="'tpl/orders/paid.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="已发货"  ng-click="changeState(2,2)">-->
                        <!--<div ng-include="'tpl/orders/shipped.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="确认收货/待评价" ng-click="changeState(3,2)">-->
                        <!--<div ng-include="'tpl/orders/confirm.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="交易完成"  ng-click="changeState(6,2)">-->
                        <!--<div ng-include="'tpl/orders/complete.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="交易取消" ng-click="changeState(7,2)">-->
                        <!--<div ng-include="'tpl/orders/cancel.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="退货/退款中" ng-click="changeState(8,2)">-->
                        <!--<div ng-include="'tpl/orders/failin.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="退款/退货完成" ng-click="changeState(9,2)">-->
                        <!--<div ng-include="'tpl/orders/fail.html'"></div>-->
                    <!--</tab>-->
                <!--</tabset>-->
            <!--</div>-->
        <!--</tab>-->
        <!--<tab heading="到店订单" ng-click="changeStatus(0)" ng-if="shop.isShop==1">-->
            <!--<div class="panel m-n" ng-if="orders.type==0">-->
                <!--<div class="wrapper panel-body m-b-sm b-a padder-v">-->
                    <!--<div class="col-sm-9">-->
                        <!--<form class="form-inline">-->
                            <!--<div class="block m-t-sm">-->
                                <!--<label class="control-label">下单时间</label>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyStartDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyEndDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.buyStartDate"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="block m-t-sm">-->
                                <!--<label class="control-label">核销时间</label>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.useStartDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" max-date="maxDate"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.useEndDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.useStartDate" max-date="maxDate"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="form-group block m-t-sm">-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">店铺订单编号</label>-->
                                    <!--<input type="text" ng-model="orders.shopOrderNumber" class="input-sm form-control">-->
                                <!--</div>-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">手机号码</label>-->
                                    <!--<input type="text" ng-model="orders.userMobilePhone" class="input-sm form-control">-->
                                <!--</div>-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">购买方式</label>-->
                                    <!--<select class="input-sm form-control" ng-model="orders.payWay">-->
                                        <!--<option value >全部</option>-->
                                        <!--<option value="0">微信</option>-->
                                        <!--<option value="1">现金分</option>-->
                                        <!--<option value="2">收益分</option>-->
                                        <!--<option value="3">会员卡</option>-->
                                    <!--</select>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<input type="hidden" ng-model="orders.pageType" ng-init="orders.pageType = 0" >-->
                            <!--<button class="btn btn-sm btn-info" ng-click="query()">查询</button>-->
                        <!--</form>-->
                    <!--</div>-->
                    <!--<div class="col-sm-1 pull-right no-padder">-->
                        <!--<div class="text-right">-->
                            <!--<button class="btn btn-success m-n" ng-click="exportData(0)">导出订单</button>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->

                <!--<tabset class="tab-container m-n">-->
                    <!--<tab heading="全部订单" ng-click="clearState(0)" active="orders.status==-1">-->
                        <!--<div ng-include="'tpl/orders/all.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="待使用" ng-click="changeState(4,0)">-->
                        <!--<div ng-include="'tpl/orders/wait_use.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="已使用" ng-click="changeState(5,0)">-->
                        <!--<div ng-include="'tpl/orders/has_use.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="交易完成"  ng-click="changeState(6,0)">-->
                        <!--<div ng-include="'tpl/orders/complete.html'"></div>-->
                    <!--</tab>-->
                    <!--&lt;!&ndash;<tab heading="退款中" ng-click="changeState(8,0)">&ndash;&gt;-->
                        <!--&lt;!&ndash;<div ng-include="'tpl/orders/failin.html'"></div>&ndash;&gt;-->
                    <!--&lt;!&ndash;</tab>&ndash;&gt;-->
                    <!--&lt;!&ndash;<tab heading="退款完成" ng-click="changeState(9,0)">&ndash;&gt;-->
                        <!--&lt;!&ndash;<div ng-include="'tpl/orders/fail.html'"></div>&ndash;&gt;-->
                    <!--&lt;!&ndash;</tab>&ndash;&gt;-->
                <!--</tabset>-->
            <!--</div>-->
        <!--</tab>-->
        <tab heading="配送订单" ng-click="changeStatus(1)" >
            <div class=" panel m-n" ng-if="orders.type==1">
                <div class="wrapper panel-body m-b-sm b-a padder-v">
                    <div class="col-sm-9">
                        <form class="form-inline">
                            <div class="block m-t-sm">
                                <label class="control-label">下单时间</label>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyStartDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyEndDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.buyStartDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div class="block m-t-sm">
                                <label class="control-label">付款时间</label>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.startDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" max-date="maxDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.endDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.startDate" max-date="maxDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group block m-t-sm">
                                <div class="form-group">
                                    <label class="control-label">店铺订单编号</label>
                                    <input type="text" ng-model="orders.shopOrderNumber" class="input-sm form-control">
                                </div>
                                <div class="form-group">
                                    <label class="control-label">手机号码</label>
                                    <input type="text" ng-model="orders.userMobilePhone" class="input-sm form-control">
                                </div>
                                <div class="form-group">
                                    <label class="control-label">购买方式</label>
                                    <select class="input-sm form-control" ng-model="orders.payWay">
                                        <option value >全部</option>
                                        <option value="0">微信</option>
                                        <option value="1">现金分</option>
                                        <option value="2">收益分</option>
                                        <option value="3">会员卡</option>
                                    </select>
                                </div>
                            </div>
                            <input type="hidden" ng-model="orders.pageType" ng-init="orders.pageType = 0" >
                            <button class="btn btn-sm btn-info" ng-click="query()">查询</button>
                        </form>
                    </div>
                    <div class="col-sm-1 pull-right no-padder">
                        <div class="text-right">
                            <button class="btn btn-success m-n" ng-click="exportData(1)">导出订单</button>
                        </div>
                    </div>
                </div>

                <tabset class="tab-container m-n">
                    <tab heading="全部订单" ng-click="clearState(1)" active="orders.status==-1">
                        <div ng-include="'tpl/orders/all.html'"></div>
                    </tab>
                    <tab heading="未付款" ng-click="changeState(0,1)">
                        <div ng-include="'tpl/orders/wait.html'"></div>
                    </tab>
                    <tab heading="已付款" ng-click="changeState(1,1)">
                        <div ng-include="'tpl/orders/paid.html'"></div>
                    </tab>
                    <tab heading="已接单" ng-click="changeState(10,1)">
                        <div ng-include="'tpl/orders/accept.html'"></div>
                    </tab>
                    <tab heading="已配送"  ng-click="changeState(2,1)">
                        <div ng-include="'tpl/orders/shipped.html'"></div>
                    </tab>
                    <tab heading="交易完成"  ng-click="changeState(6,1)">
                        <div ng-include="'tpl/orders/complete.html'"></div>
                    </tab>
                    <tab heading="交易取消" ng-click="changeState(7,1)">
                        <div ng-include="'tpl/orders/cancel.html'"></div>
                    </tab>
                    <!--<tab heading="退款中" ng-click="changeState(8,1)">-->
                        <!--<div ng-include="'tpl/orders/failin.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="退款完成" ng-click="changeState(9,1)">-->
                        <!--<div ng-include="'tpl/orders/fail.html'"></div>-->
                    <!--</tab>-->
                </tabset>
            </div>
        </tab>
        <tab heading="堂食订单" ng-click="changeStatus(3)" ng-if="shop.isEat==1 ">
            <div class=" panel m-n" ng-if="orders.type==3">
                <div class="wrapper panel-body m-b-sm b-a padder-v">
                    <div class="col-sm-9">
                        <form class="form-inline">
                            <div class="block m-t-sm">
                                <label class="control-label">下单时间</label>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyStartDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyEndDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.buyStartDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div class="block m-t-sm">
                                <label class="control-label">付款时间</label>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.startDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" max-date="maxDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.endDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.startDate" max-date="maxDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group block m-t-sm">
                                <div class="form-group">
                                    <label class="control-label">店铺订单编号</label>
                                    <input type="text" ng-model="orders.shopOrderNumber" class="input-sm form-control">
                                </div>
                                <div class="form-group">
                                    <label class="control-label">手机号码</label>
                                    <input type="text" ng-model="orders.userMobilePhone" class="input-sm form-control">
                                </div>
                                <div class="form-group">
                                    <label class="control-label">购买方式</label>
                                    <select class="input-sm form-control" ng-model="orders.payWay">
                                        <option value >全部</option>
                                        <option value="0">微信</option>
                                        <option value="1">现金分</option>
                                        <option value="2">收益分</option>
                                        <option value="3">会员卡</option>
                                    </select>
                                </div>
                            </div>
                            <input type="hidden" ng-model="orders.pageType" ng-init="orders.pageType = 0" >
                            <button class="btn btn-sm btn-info" ng-click="query()">查询</button>
                        </form>
                    </div>
                    <div class="col-sm-1 pull-right no-padder">
                        <div class="text-right">
                            <button class="btn btn-success m-n" ng-click="exportData(3)">导出订单</button>
                        </div>
                    </div>
                </div>

                <tabset class="tab-container m-n">
                    <tab heading="全部订单" ng-click="clearState(3)" active="orders.status==-1">
                        <div ng-include="'tpl/orders/all.html'"></div>
                    </tab>
                    <tab heading="未付款" ng-click="changeState(0,3)">
                        <div ng-include="'tpl/orders/wait.html'"></div>
                    </tab>
                    <tab heading="交易完成"  ng-click="changeState(6,3)">
                        <div ng-include="'tpl/orders/complete.html'"></div>
                    </tab>
                    <tab heading="交易取消" ng-click="changeState(7,3)">
                        <div ng-include="'tpl/orders/cancel.html'"></div>
                    </tab>
                    <!--<tab heading="退款中" ng-click="changeState(8,3)">-->
                        <!--<div ng-include="'tpl/orders/failin.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="退款完成" ng-click="changeState(9,3)">-->
                        <!--<div ng-include="'tpl/orders/fail.html'"></div>-->
                    <!--</tab>-->
                </tabset>
            </div>
        </tab>
        <!--<tab heading="预定订单" ng-click="changeStatus(4)" ng-if="shop.isReserve==1">-->
            <!--<div class="panel m-n" ng-if="orders.type==4">-->
                <!--<div class="wrapper panel-body m-b-sm b-a padder-v">-->
                    <!--<div class="col-sm-9">-->
                        <!--<form class="form-inline">-->
                            <!--<div class="block m-t-sm">-->
                                <!--<label class="control-label">预定时间</label>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyStartDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                                <!--<div class="input-group" ng-controller="DatepickerDemoCtrl">-->
                                    <!--<div class="input-group  no-padder m-n w-lg">-->
                                        <!--<input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyEndDate"-->
                                               <!--alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.buyStartDate"/>-->
                                    <!--<span class="input-group-btn ">-->
                                        <!--<button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>-->
                                    <!--</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="form-group block m-t-sm">-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">店铺订单编号</label>-->
                                    <!--<input type="text" ng-model="orders.shopOrderNumber" class="input-sm form-control">-->
                                <!--</div>-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">手机号码</label>-->
                                    <!--<input type="text" ng-model="orders.userMobilePhone" class="input-sm form-control">-->
                                <!--</div>-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label">购买方式</label>-->
                                    <!--<select class="input-sm form-control" ng-model="orders.payWay">-->
                                        <!--<option value >全部</option>-->
                                        <!--<option value="0">微信</option>-->
                                        <!--<option value="1">现金分</option>-->
                                        <!--<option value="2">收益分</option>-->
                                        <!--<option value="3">会员卡</option>-->
                                    <!--</select>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<input type="hidden" ng-model="orders.pageType" ng-init="orders.pageType = 0" >-->
                            <!--<button class="btn btn-sm btn-info" ng-click="query()">查询</button>-->
                        <!--</form>-->
                    <!--</div>-->
                    <!--<div class="col-sm-1 pull-right no-padder">-->
                        <!--<div class="text-right">-->
                            <!--<button class="btn btn-success m-n" ng-click="exportData(4)">导出订单</button>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->

                <!--<tabset class="tab-container m-n">-->
                    <!--<tab heading="全部订单" ng-click="clearState(4)" active="orders.status==-1">-->
                        <!--<div ng-include="'tpl/orders/booking_all.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="已预定" ng-click="changeState(4,4)">-->
                        <!--<div ng-include="'tpl/orders/wait_use.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="已消费" ng-click="changeState(5,4)">-->
                        <!--<div ng-include="'tpl/orders/has_use.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="交易完成"  ng-click="changeState(6,4)">-->
                        <!--<div ng-include="'tpl/orders/complete.html'"></div>-->
                    <!--</tab>-->
                    <!--&lt;!&ndash;<tab heading="退款中" ng-click="changeState(8,4)">&ndash;&gt;-->
                        <!--&lt;!&ndash;<div ng-include="'tpl/orders/failin.html'"></div>&ndash;&gt;-->
                    <!--&lt;!&ndash;</tab>&ndash;&gt;-->
                    <!--&lt;!&ndash;<tab heading="退款完成" ng-click="changeState(9,4)">&ndash;&gt;-->
                        <!--&lt;!&ndash;<div ng-include="'tpl/orders/fail.html'"></div>&ndash;&gt;-->
                    <!--&lt;!&ndash;</tab>&ndash;&gt;-->
                <!--</tabset>-->
            <!--</div>-->
        <!--</tab>-->
        <tab heading="自提订单" ng-click="changeStatus(5)" ng-if="shop.isDelivery==1 ">
            <div class=" panel m-n" ng-if="orders.type==5">
                <div class="wrapper panel-body m-b-sm b-a padder-v">
                    <div class="col-sm-9">
                        <form class="form-inline">
                            <div class="block m-t-sm">
                                <label class="control-label">下单时间</label>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyStartDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.buyEndDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.buyStartDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div class="block m-t-sm">
                                <label class="control-label">付款时间</label>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.startDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" max-date="maxDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                                <div class="input-group" ng-controller="DatepickerDemoCtrl">
                                    <div class="input-group  no-padder m-n w-lg">
                                        <input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd" ng-model="orders.endDate"
                                               alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" min-date="orders.startDate" max-date="maxDate"/>
                                    <span class="input-group-btn ">
                                        <button type="button" class="input-sm btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group block m-t-sm">
                                <div class="form-group">
                                    <label class="control-label">店铺订单编号</label>
                                    <input type="text" ng-model="orders.shopOrderNumber" class="input-sm form-control">
                                </div>
                                <div class="form-group">
                                    <label class="control-label">手机号码</label>
                                    <input type="text" ng-model="orders.userMobilePhone" class="input-sm form-control">
                                </div>
                                <div class="form-group">
                                    <label class="control-label">购买方式</label>
                                    <select class="input-sm form-control" ng-model="orders.payWay">
                                        <option value >全部</option>
                                        <option value="0">微信</option>
                                        <option value="1">现金分</option>
                                        <option value="2">收益分</option>
                                        <option value="3">会员卡</option>
                                    </select>
                                </div>
                            </div>
                            <input type="hidden" ng-model="orders.pageType" ng-init="orders.pageType = 0" >
                            <button class="btn btn-sm btn-info" ng-click="query()">查询</button>
                        </form>
                    </div>
                    <div class="col-sm-1 pull-right no-padder">
                        <div class="text-right">
                            <button class="btn btn-success m-n" ng-click="exportData(5)">导出订单</button>
                        </div>
                    </div>
                </div>

                <tabset class="tab-container m-n">
                    <tab heading="全部订单" ng-click="clearState(5)" active="orders.status==-1">
                        <div ng-include="'tpl/orders/all.html'"></div>
                    </tab>
                    <tab heading="未付款" ng-click="changeState(0,5)">
                        <div ng-include="'tpl/orders/wait.html'"></div>
                    </tab>
                    <tab heading="已付款" ng-click="changeState(1,5)">
                        <div ng-include="'tpl/orders/paid.html'"></div>
                    </tab>
                    <tab heading="已接单" ng-click="changeState(10,5)">
                        <div ng-include="'tpl/orders/accept.html'"></div>
                    </tab>
                    <tab heading="交易完成"  ng-click="changeState(6,5)">
                        <div ng-include="'tpl/orders/complete.html'"></div>
                    </tab>
                    <tab heading="交易取消" ng-click="changeState(7,5)">
                        <div ng-include="'tpl/orders/cancel.html'"></div>
                    </tab>
                    <!--<tab heading="退款中" ng-click="changeState(8,5)">-->
                        <!--<div ng-include="'tpl/orders/failin.html'"></div>-->
                    <!--</tab>-->
                    <!--<tab heading="退款完成" ng-click="changeState(9,5)">-->
                        <!--<div ng-include="'tpl/orders/fail.html'"></div>-->
                    <!--</tab>-->
                </tabset>
            </div>
        </tab>
    </tabset>

    <div class="fade-in-up">
        <div class="wrapper-md">
            <div class="panel-body panel text-center" ng-if="shop.auditStatus!=2">
                <div class="orders_container">
                    <div class="inline">
                        <div class="orders_back"></div>
                    </div>
                    <div class="orders_url">
                        <span class="orders_span font-bold h5">店铺暂未被开启订单管理功能</span>
                        <span class="orders_span h6">您的店铺暂时未有查看订单功能选项</span>
                        <span class="orders_url_span" ui-sref="app.home">回到首页</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
